package com.ruoyi.consumer.controller.facilit.fill;

import com.ruoyi.common.core.domain.AjaxResult;

import java.io.IOException;

/**
 * @author: lizhouwei
 * @ date : 2023/11/24
 * @description:
 */
public interface FillService {

    //计算加注升数 单价 * 加注升数 = 付款金额
    Double calculateFillVol(Integer orderVol, Integer orderPrice);

    //计算实际金额 单价 * 加注升数 = 付款金额
    Double calculateFillMoney(Double orderVol, Double orderPrice);

    AjaxResult payFillNotice(String notifyXml) throws IOException;

    String minOrder(Long orderId, String out_trade_no) throws IOException;

    //结算更新个人交易记录
    int updateCDealPerson(Integer deviceOrderId, Long amount);
    //结算更新个人钱包
    int updateCWalletPerson(Integer deviceOrderId, Long amount,Long realAmount);

    //结算更新公司交易记录
    int updateCDealCompany(Integer deviceOrderId, Long amount);
    //结算更新公司钱包
    int updateCWalletCompany(Integer deviceOrderId, Long amount,Long realAmount);

}
